#if !defined(AFX_DDRAGDLG_H__8B9FC130_23FF_48A4_BEC1_1C73369F8B8F__INCLUDED_)
#define AFX_DDRAGDLG_H__8B9FC130_23FF_48A4_BEC1_1C73369F8B8F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DDragDlg.h : header file
//

#include "LineTracker.h"
#include "resource.h"
#include "Pane.h"
#include "DPaneBean.h"
#include "StdAfx.h"	// Added by ClassView
#include "PaneTree.h"
/////////////////////////////////////////////////////////////////////////////
// DDragDlg dialog

static int count=1;
class CPane;
class DDragDlg : public CDialog
{
// Construction
public:
	DDragDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(DDragDlg)
	enum { IDD = IDD_DLG_DRAG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
public:
	void AddPane(BOOL bFullScrean);

public:
	CPane* m_pCurrPane;
	CRectTracker m_tracker;	

	CPtrList m_PanList;
	vector <treenodeinfo>	vtree;
public:
	void CloseEditer();
	BOOL m_bSceneCreated;
	void clearPanes();
	d_vt_tmpstrinfo DStrSlp(CString m_str,CString m_flag);
	void parsePos(CString posStr,CDrawElement* sharp);
	void reLoadAll(d_vt_dvoid_sIt m_DPanevt);
	void delPane(int tposd,int tposx,int tposy);
	void delPaneTemplate(int tposd,int tposx,int tposy);
	int getDelPanes(d_vt_dvoid_sIt tm_vsit);
	void getDelPanesElement(d_vt_tmpinfo tm_vsit);
	void notifyUpdateData();
	void save();
	void showPane(int tposd,int tposx,int tposy);
	int m_CurrentTool;
	void ClearSelection();
	void DrawArrow(CDC *pdc,CPoint m_One, CPoint m_Two);
	void setDlgAlaph(int ii);
    d_vt_dvoid_sIt mDPanevt;
	void reDrawAll(d_vt_dvoid_sIt m_DPanevt);
	void reDrawAllA(int i,d_vt_dvoid_sIt m_DPanevt);
	void delDrawAll();

	//wuqiong 2009.10.23
	void DelElement();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(DDragDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(DDragDlg)
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnPaint();
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DDRAGDLG_H__8B9FC130_23FF_48A4_BEC1_1C73369F8B8F__INCLUDED_)
